package com.macro.mall.commission.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户账户余额变更记录Domain
 *
 * @author xuyanjun
 * @date 2019-12-11
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class UserBalanceChange {

    /**
     * id
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 最后修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 变化金额
     */
    private BigDecimal changeAmount;

    /**
     * 变化后余额
     */
    private BigDecimal afterChangeBalance;

    /**
     * 变化类型枚举 0:NONE:无 5:COMMISSION_INCOME:佣金收入 100:WITHDRAWAL:提现
     */
    private Integer changeType;

    /**
     * 变化原因
     */
    private String reason;

    /**
     * 备注
     */
    private String remark;

}
